package com.seelyn.rhea.mvc.inject;

import com.seelyn.rhea.mvc.common.utils.ClassUtils;

/**
 * @author linfeng
 * @since 2016/1/22
 */
public class DefaultInjection implements Injection {

    @Override
    public Object getBean(Class<?> clazz) {
        return ClassUtils.newInstance(clazz);
    }

    @Override
    public Object getBean(String clazzName) {
        return ClassUtils.newInstance(clazzName);
    }

}
